import { IMessageHandler } from "../../../Framework/MQ/IMessageHandler";
import { MessageBlock } from "../../../Framework/MQ/MessageBlock";
import { EPublicCommand } from "../../../Message/Command/EPublicCommand";
import { NetDispatcher } from "../../mvc/core/NetDispatcher";
//class LoginMessageHandler

export class LoginMessageHandler implements IMessageHandler {

  public onMessage(block: MessageBlock): void {
    switch (block.messageHead.command) {
      case EPublicCommand._ECmdPublicLoginInfoShow: {
        NetDispatcher.dispatchCmd(block.messageHead.command, block);
        break;
      }
    }
    return;
  }
}
